home *** CD-ROM | disk | FTP | other *** search
/ Developer CD Series 1996 October: Mac OS SDK / Dev.CD Oct 96 SDK / Dev.CD Oct 96 SDK2.toast / Development Kits (Disc 2) / OpenDoc Development Framework / ODFDev / ODF / Framewrk / FWSemEvt / Include / FWAplEvt.h next >
Encoding:
Text File  |  1996-08-16  |  1.9 KB  |  68 lines  |  [TEXT/MPS ]

  1. //========================================================================================
  2. //
  3. //    File:                FWAplEvt.h
  4. //    Release Version:    $ ODF 1 $
  5. //
  6. //    Copyright:    © 1996 by Apple Computer, Inc., all rights reserved.
  7. //
  8. //========================================================================================
  9.  
  10. #ifndef FWAPLEVT_H
  11. #define FWAPLEVT_H
  12.  
  13. #ifndef FWDESC_H
  14. #include "FWDesc.h"
  15. #endif
  16.  
  17. //========================================================================================
  18. //    Forward Declarations
  19. //========================================================================================
  20.  
  21. class ODAppleEvent;
  22. class FW_CPart;
  23. class FW_MScriptable;
  24.  
  25. //========================================================================================
  26. //    class FW_CAppleEvent
  27. //========================================================================================
  28.  
  29. class FW_CAppleEvent : public FW_CDesc
  30. {
  31. public:
  32.     FW_DECLARE_AUTO(FW_CAppleEvent)
  33.     
  34.     FW_CAppleEvent();
  35.     FW_CAppleEvent(ODAppleEvent* odAppleEvent);
  36.     
  37.     virtual ~FW_CAppleEvent();
  38.     
  39.     FW_Boolean     HasAttributeKey(ODDescType key) const;
  40.     void         GetAttributeByKey(AEKeyword key, FW_CDesc& desc, ODDescType desiredType = typeWildCard) const;
  41.     
  42.     FW_Boolean    HasSubject() const;
  43.     void        GetSubject(FW_CDesc& subjectDesc) const;
  44.     
  45.     AEKeyword     GetEventClass() const;
  46.     AEKeyword     GetEventID() const;
  47.     
  48.     operator    ODAppleEvent*() const;
  49.     operator    ODAppleEvent**();
  50.     
  51. protected:
  52.     
  53.     virtual ODDesc* PrivCreateODDesc(Environment* ev) const;
  54. };
  55.  
  56. //========================================================================================
  57. //    Utility Functions
  58. //========================================================================================
  59.  
  60. short FW_MakeSetLocalPropertyEvent(Environment* ev, 
  61.                                 FW_CPart* part, 
  62.                                 FW_MScriptable* theObject,
  63.                                 ODDescType whichProperty,
  64.                                 FW_CDesc& newValue,
  65.                                 FW_CAppleEvent& setPropertyEvent);
  66.  
  67.  
  68. #endif // FWAPLEVT_H